package org.hiucung.desktoptranslationtools.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.navigator.tab.Tab
import cafe.adriel.voyager.navigator.tab.TabOptions
import org.hiucung.desktoptranslationtools.screens.ExportScreen
import org.hiucung.desktoptranslationtools.screens.ImportScreen

/**
 * @title: TabItem
 * @projectName DesktopTranslationTools
 * @description: 首页 Tab
 * @author Kicc
 * @date 2025/7/22 2:45
 */

// 定义两个 Tab
object ImportTab : Tab {
    override val options: TabOptions
        @Composable get() = TabOptions(
            index = 0u,
            title = "导入",

        )

    @Composable
    override fun Content() {
        ImportScreen().Content()
    }
}

object ExportTab : Tab {
    override val options: TabOptions
        @Composable get() = TabOptions(
            index = 1u,
            title = "导出"

        )

    @Composable
    override fun Content() {
        ExportScreen().Content()
    }
}